﻿using AleaBelli.Core.Data;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AleaBelli.Core.Service
{
    public class GameServiceImpl : IGameService
    {
        private Hex[,] map = new Hex[,] { };

        public GameServiceImpl()
        {
            InitMap();
        }

        private int mapWidth = 2;
        private int mapHeight = 2;

        private void InitMap()
        {
            map = new Hex[mapWidth, mapHeight];
            for (int x = 0; x < mapWidth; x++)
            {
                for (int y = 0; y < mapHeight; y++)
                {
                    map[x, y] = new Hex();
                }
            }
        }

        public Hex[,] GetMap()
        {
            return map;
        }
    }
}
